//
//  Constans.swift
//  AirlineReservation
//
//  Created by Kevin on 2019/12/26.
//  Copyright © 2019 Kevin. All rights reserved.
//

import UIKit


// 间距
let MARGIN:CGFloat = 16
// 宽度
let S_16_M = SCREEN_WIDTH - MARGIN * 2
// 间距13
let MARGIN13:CGFloat = 13
// 间距5
let MARGIN5:CGFloat = 5
// 间距8
let MARGIN8:CGFloat = 8
// 间距10
let MARGIN10:CGFloat = 10
// 间距15
let MARGIN15:CGFloat = 15
// 间距20
let MARGIN20:CGFloat = 20
// 间距25
let MARGIN25:CGFloat = 25
// 间距30
let MARGIN30:CGFloat = 30
// 间距35
let MARGIN35:CGFloat = 35
// 间距40
let MARGIN40:CGFloat = 40
// 间距44
let MARGIN44:CGFloat = 44
// 间距50
let MARGIN50:CGFloat = 50
// 间距55
let MARGIN55:CGFloat = 55
// 间距45
let MARGIN45:CGFloat = 45
// 间距60
let MARGIN60:CGFloat = 60
// 间距70
let MARGIN70:CGFloat = 70
// 间距80
let MARGIN80:CGFloat = 80
// 间距90
let MARGIN90:CGFloat = 90
// 间距100
let MARGIN100:CGFloat = 100
// 间距110
let MARGIN110:CGFloat = 110
// 间距120
let MARGIN120:CGFloat = 120
// 间距130
let MARGIN130:CGFloat = 130
// 间距140
let MARGIN140:CGFloat = 140
// 间距150
let MARGIN150:CGFloat = 150
// 间距200
let MARGIN200:CGFloat = 200

// 行高
let ROW_HEIGHT = MARGIN70

// 轮播图高
let VIEWPAGER_HEIGHT = SCREEN_HEIGHT * 0.2

// 分割线颜色
let COLOR_LINE = UIColor.init(white: 237 / 255.0, alpha: 1)
let COLOR_LINE2 = UIColor.init(white: 248 / 255.0, alpha: 1)

// 浅白色
let COLOR_LIGHT_WHITE = UIColor.init(white: 245 / 255.0, alpha: 1)
let COLOR_LIGHT_WHITE2 = UIColor.init(white: 254 / 255.0, alpha: 1)
let COLOR_LIGHT_WHITE3 = UIColor.init(white: 251 / 255.0, alpha: 1)

// 背景颜色
let COLOR_BACKGROUND = UIColor(displayP3Red: 240/250.0, green: 240/250.0, blue: 240/250.0, alpha: 1.0)

let COLOR_LOGIN = Palette.colorFromRGB(29, green: 171, blue: 247)
let COLOR_BLUE = UIColor.init(displayP3Red: 0/255.0, green: 160/255.0, blue: 229/255.0, alpha: 1)
let COLOR_LIGHT_BLUE = UIColor.init(displayP3Red: 181/255.0, green: 224/255.0, blue: 244/255.0, alpha: 1)

// 选中颜色
let COLOR_SELECT = UIColor.init(white: 247 / 255.0, alpha: 1)

// 灰色
let COLOR_NICE = UIColor.init(white: 60 / 255.0, alpha: 1)
let COLOR_TIP = Palette.colorFromRGB(175, green: 141, blue: 92)

// 红色
let COLOR_RED = Palette.colorFromRGB(207, green: 40, blue: 45)

// 绿色
let COLOR_GREEN = Palette.colorFromRGB(36, green: 153, blue: 50)

// 手势背景 浅色
let GESTURE_BG_RED = Palette.colorFromRGB(245, green: 167, blue: 169)

// 手势中间圆 红色
let GESTURE_CENTER_RED = Palette.colorFromRGB(247, green: 0, blue: 67)

// 我的头部背景
let COLOR_MINE_TOP = Palette.colorFromRGB(235, green: 235, blue: 235)

// 屏幕宽度
let SCREEN_WIDTH = UIScreen.main.bounds.width

// 屏幕高度
let SCREEN_HEIGHT = UIScreen.main.bounds.height

// 无参的回调
typealias clickCallback = () -> Void

// 通知对象
let CUSTOM_SWITCH_NOTIFICATIONCENTER = NSNotification.Name(rawValue: "CUSTOM_SWITCH_NOTIFICATIONCENTER")


// 常量文本
let NV = "女"
let NAN = "男"
let OK = "确定"
let EMAIL = "邮箱"
let GENDER = "性别"
let MOBILE = "手机号"
let USERNAME = "用户名"
let IDNUMBER = "身份证号"
let PASSWORD = "密码"
let NEW_PASSWORD = "新密码"
let PASSWORD_AGAIN = "确认密码"
let INPUT_PASSWORD = "输入密码"

let EMAIL_TIP = "有效的邮箱地址"
let USERNAME_TIP = "昵称显示"
let MOBILE_TIP = "移动/电信/联通手机号"
let IDNUMBER_TIP = "中国公民有效的身份证件"
let PASSWORD_TIP = "含数字/字母/特殊字符"
let INPUT_PASSWORD_TIP = "请再次输入密码"

let SP_IP = "ipaddress"
let SP_INNTER = "http://192.168.6.111:8080/airline/"
let SP_OUTTER = "http://fido.nationauth.cn:11116/airline/"

let SP_MOBILE = "mobile"
let SP_EMAIL = "email"
let SP_GENDER = "gender"
let SP_USERID = "userid"
let SP_IDNUMBER = "idnumber"
let SP_USERNAME = "username"
let SP_LINKMANID = "linkmanid"
let SP_PASSWORD = "password"
let SP_UPDATETIME = "updatetime"
let SP_PASSENGERID = "passengerid"
let SP_ORDERSTATUS = "orderstatus"
let SP_PERMISSIONID = "permissionid"
let SP_BODYREQUEST = "bodyRequest"

let SP_GESTURE_PAY_PWD = "gesturepasswordpay"
let SP_BIOMETRIC_PAY_PWD = "biometricpasswordpay"
let SP_GESTURE_LOGIN_PWD = "gesturepasswordlogin"
let SP_BIOMETRIC_LOGIN_PWD = "biometricpasswordlogin"

let SP_FACE_PAY = "facepay"
let SP_FINGER_PAY = "fingerpay"
let SP_GESTURE_PAY = "gesturepay"
let SP_FACE_LOGIN = "facelogin"
let SP_FINGER_LOGIN = "fingerlogin"
let SP_GESTURE_LOGIN = "gesturelogin"


let WEB_SCRIPT = "var meta = document.createElement('meta'); meta.setAttribute('name', 'viewport'); meta.setAttribute('content', 'width=device-width'); document.getElementsByTagName('head')[0].appendChild(meta);"
